<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
 <head>
  <title>考试人员信息</title>
  <t:base type="jquery,easyui,tools,DatePicker"></t:base>
  <script type="text/javascript" src="plug-in/ckeditor_new/ckeditor.js"></script>
  <script type="text/javascript" src="plug-in/ckfinder/ckfinder.js"></script>
  <script type="text/javascript">
  //编写自定义JS代码
  </script>
 </head>
 <script type="text/javascript">
 	function name() {
		var type = ${fUserQuizPage.type};
		var job = ${fUserQuizPage.job};
		var isActive = ${fUserQuizPage.isActive};
		var obj = document.getElementById("type");
		var jobOBj = document.getElementById("job");
		var actOBj = document.getElementById("isActive");
		obj.value = type;
		jobOBj.value = job;
		actOBj.value = isActive;
		
	}
 </script>
 <body onload="name();">
  <t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="fUserQuizController.do?doUpdate" tiptype="1">
					<input id="id" name="id" type="hidden" value="${fUserQuizPage.id }">
		<table style="width: 600px;" cellpadding="0" cellspacing="1" class="formtable">
					<tr>
						<td align="right">
							<label class="Validform_label">
								应聘者:
							</label>
						</td>
						<td class="value">
						     	 <%-- <input id="type1" name="type1" type="text" style="width: 150px" class="inputxt"  
									               datatype="*"
										       value='${fUserQuizPage.type}'> --%>
								<select id="type" name="type" >
                 				<option value="1" selected>员工</option>
                 				<option value="0">应聘者</option>
        					</select>    
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">应聘者</label>
						</td>
					</tr>
					<tr>
						<td align="right">
							<label class="Validform_label">
								登录账户:
							</label>
						</td>
						<td class="value">
						     	 <input id="email" name="email" type="text" style="width: 150px" class="inputxt"  
									               datatype="*"
										       value='${fUserQuizPage.email}'>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">登录账户</label>
						</td>
					</tr>
					<tr>
						<td align="right">
							<label class="Validform_label">
								昵称:
							</label>
						</td>
						<td class="value">
						     	 <input id="nickname" name="nickname" type="text" style="width: 150px" class="inputxt"  
									               datatype="*"
										       value='${fUserQuizPage.nickname}'>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">昵称</label>
						</td>
					</tr>
					<tr>
						<td align="right">
							<label class="Validform_label">
								岗位:
							</label>
						</td>
						<td class="value">
						     	 <%-- <input id="job" name="job" type="text" style="width: 150px" class="inputxt"  
									               datatype="*"
										       value='${fUserQuizPage.job}'> --%>
							<select id="job" name="job">
								<%String[] list = (String[])request.getAttribute("fJob");
						    	for(int i=0;i<list.length;i++){
						    		%>	<option value="<%=i+1%>"><%=list[i] %></option>
						    	<%} %>
                 				<!-- <option value="1" selected>PHP工程师</option>
                 				<option value="2">JAVA工程师</option>
                 				<option value="3">Android工程师</option>
                 				<option value="4">IT工程师</option>
                 				<option value="5">运维工程师</option>
                 				<option value="6">逆向工程师</option> -->
                 				</select>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">岗位</label>
						</td>
					</tr>
					<tr>
						<td align="right">
							<label class="Validform_label">
								创建时间:
							</label>
						</td>
						<td class="value">
									  <input id="createDatetime" name="createDatetime" type="text" style="width: 150px" 
						      						class="Wdate" onClick="WdatePicker()"
									               datatype="*" 
						      						 value='<fmt:formatDate value='${fUserQuizPage.createDatetime}' type="date" pattern="yyyy-MM-dd"/>'>    
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">创建时间</label>
						</td>
					</tr>
					<tr>
						<td align="right">
							<label class="Validform_label">
								有效日期:
							</label>
						</td>
						<td class="value">
									  <input id="validDate" name="validDate" type="text" style="width: 150px" 
						      						class="Wdate" onClick="WdatePicker()"
									               datatype="*" 
						      						 value='<fmt:formatDate value='${fUserQuizPage.validDate}' type="date" pattern="yyyy-MM-dd"/>'>    
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">有效日期</label>
						</td>
					</tr>
					<tr>
						<td align="right">
							<label class="Validform_label">
								激活时间:
							</label>
						</td>
						<td class="value">
									  <input id="activeDatetime" name="activeDatetime" type="text" style="width: 150px" 
						      						class="Wdate" onClick="WdatePicker()"
									               datatype="*" 
						      						 value='<fmt:formatDate value='${fUserQuizPage.activeDatetime}' type="date" pattern="yyyy-MM-dd"/>'>    
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">激活时间</label>
						</td>
					</tr>
					<tr>
						<td align="right">
							<label class="Validform_label">
								状态:
							</label>
						</td>
						<td class="value">
						     	 <%-- <input id="isActive" name="isActive" type="text" style="width: 150px" class="inputxt"  
									               datatype="*"
										       value='${fUserQuizPage.isActive}'> --%>
						    <select id="isActive" name="isActive">
                 				<option value="1">激活</option>
                 				<option value="2"  selected>未激活</option>
        					</select>    
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">状态</label>
						</td>
					</tr>
			</table>
		</t:formvalid>
 </body>
  <script src = "webpage//user/fUserQuiz.js"></script>		